package com.hotlove.usercenter.service;

import com.hotlove.tools.exception.CommonException;
import com.hotlove.usercenter.domain.Profile;
import com.hotlove.usercenter.dto.Crendential;
import com.hotlove.usercenter.vo.ProfileVO;

/**
 * @Auther: hotlove_linx
 * @Date: 2022/4/5 16:22
 * @Description:
 */
public interface ProfileService {

    /**
     * 注册用户
     * @param profile
     * @return
     * @throws CommonException
     */
    Long registerProfile(Profile profile) throws CommonException;

    /**
     * 用户登录
     * @param userName
     * @param password
     * @return
     */
    Crendential login(Integer terminal, String userName, String password) throws CommonException;

    /**
     * 查询用户信息
     * @param profileId
     * @return
     */
    Profile queryProfileById(Long profileId);

}
